package com.yang.sso.oauth.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 用户状态枚举
 *
 * @author: lslands
 * @description:
 * @version：v1.0
 * @date: 2024/6/3 00:30
 */
@Getter
public enum UserStatusEnum implements IBaseEnum<Integer> {
    /**
     * 离线
     */
    OFFLINE("离线",0),
    /**
     * 在线
     */
    ONLINE("在线",1),
    /**
     * 锁定
     */
    LOCK("锁定",2),
    /**
     * 过期
     */
    OVERDUE("过期",3),
    /**
     * 未授权
     */
    UNAUTHORIZED("未授权",4),
    /**
     * 禁用
     */
    DISABLE("禁用",5),
    ;


    @JsonValue
    private final Integer value;
    private final String label;

    UserStatusEnum(String label, Integer value) {
        this.label = label;
        this.value = value;
    }

}
